package com.jfm.jfmm.collector.enums;

/**
 * @author DYang
 * @since 2024-11-07 0:27
 *
 * 告警枚举，用于告警级别
 */
public enum AlarmStatus {

    ALARM_STATUS_NORMAL(1, "正常", null),
    ALARM_STATUS_INFO(2, "一般","需要注意"),
    ALARM_STATUS_ALARM(3, "提醒","预警"),
    ALARM_STATUS_SEVERITY(4, "严重","需要人工介入处理"),
    ALARM_STATUS_URGENT(5, "紧急（离线）","必须要立即处理");
    private final Integer code;
    private final String name;
    private final String desc;
    AlarmStatus(Integer code, String name,String desc) {
        this.code = code;
        this.name = name;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }
}
